<template>
    <TaskTable
        :tasks="tasks"
        title="已办任务列表"
        icon-class="el-icon-check"
        :show-action-buttons="true"
        @submit-task="$emit('submit-task', ...arguments)"
        @return-task="$emit('return-task', ...arguments)"
        @group-documents="$emit('group-documents', ...arguments)"
        @view-report="$emit('view-report', ...arguments)"
    />
</template>

<script setup>
import { defineProps, defineEmits } from "vue";
import TaskTable from "./TaskTable.vue";

// 接收父组件参数
const props = defineProps({
    tasks: {
        type: Array,
        default: () => [],
    },
});

// 暴露事件
const emit = defineEmits([
    "submit-task",
    "return-task",
    "group-documents",
    "view-report",
]);
</script>
